package com.cnwidsom.filter;

public class FilterChainFactory {
	public static FilterChain getFilterChain() {
		return getFilterChain(null, null);
	}

	public static FilterChain getFilterChain(FilterConfig[] filterConfigs) {
		return getFilterChain(filterConfigs, null);
	}

	public static FilterChain getFilterChain(FilterConfig[] filterConfigs, String name) {
		if (name == null) {
			return new DefaultFilterChain(filterConfigs);
		}
		throw new UnsupportedOperationException("name must be null.");
	}

}
